package com.lee.singleton;

/**
 * 功能描述:
 *
 * @author liping(lpaidd50@gmail.com)
 * @version v1.0
 * @date 2017/3/24
 */
public class SyncSingleton {
	private static SyncSingleton instance;

	private SyncSingleton() {
	}

	private static synchronized void init() {
		if (instance == null) {
			instance = new SyncSingleton();
		}
	}

	public static SyncSingleton getInstance() {
		if (instance == null) {
			init();
		}
		return instance;
	}
}
